import {observable,action,computed} from 'mobx'
import { ajax } from '../api';

class Advise{
    @observable adviseList:any=null;

    @action getAdviseList=async()=>{
        let res=await ajax.adviselist()
        res.code=200&&(this.adviseList=res.result)
        
    }
    @action changeadvise= (payload:any) =>{
        this.adviseList = payload;
    }
}

export default new Advise() 